<%--
  Created by IntelliJ IDEA.
  systemParam: lichengming
  Date: 2017/6/15
  Time: 下午12:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>


<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>系统管理和模块管理</title>
    <script type="text/javascript">

        function systemModuleSave() {
            var result = false;
            $.emsAjax({
                url:"/starCms/configuration/save",
                data:{
                    id:"${system_module.id}",
                    system_name:$("#systemName").val(),
                    module_name:$("#modulName").val()

                },
                success:function(resp) {
                    if (resp.status == "000") {
                        result = true;
                        $.alert(resp.message);
                    }else $.errorAlert(resp.message);
                }
            });
            return result;
        }
        var system_name = '${system_module.system_name}';
        if(system_name != ''){
            $("#systeName").val(system_name);
        }

        var module_name = '${system_module.module_name}';
        if(module_name != ''){
            $("#moduleName").val(module_name);
        }
    </script>
</head>
<body>
<form class="form-horizontal" id="systemModule">

    <div class="form-group">
        <label for="systemName" class="col-sm-4 control-label">系统名称：</label>
        <div class="col-sm-8">
            <input type="text" class="form-control"
                   id="systemName" value="${system_module.system_name}" disabled="disabled" placeholder="系统名称" />
        </div>
    </div>

    <div class="form-group">
        <label for="modulName" class="col-sm-4 control-label">模块名称：</label>
        <div class="col-sm-8">
            <input type="text" class="form-control"
                   id="modulName" value="${system_module.module_name}" placeholder="模块名称" />
        </div>
    </div>
</form>
</body>
</html>